
/* =========================================================
   1) RESET & THEME VARIABLES
   ========================================================= */
:root{
  /* Theme */
  --bg: #fff7fa;
  --text: #3f2b36;
  --muted: #6b5a66;
  --accent-pink: #ffb7c5;
  --card-border: #ffb7c5;
  --focus: #1a73e8;
  --max-width: 1200px;

  /* Kategori (single source of truth) */
  --cat-1: #ffff99; /* CATEGORY 1 */
  --cat-2: #8ddfb9; /* CATEGORY 2 */
  --cat-3: #9ad8ff; /* CATEGORY 3 */
  --cat-4: #ba8fdd; /* CATEGORY 4 */
  --cat-5: #ffe585; /* CATEGORY 5 */
}

*,
*::before,
*::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Georgia, serif;
  background: var(--bg);
  color: var(--text);
}

/* Skip link untuk aksesibilitas */
.skip-link {
  position: absolute;
  top: -40px;
  left: 12px;
  background: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  transition: top .2s ease;
  z-index: 1300;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

/* =========================================================
   2) PAGE WRAPPER & HEADER
   ========================================================= */
.page-wrapper { width: 100%; max-width: var(--max-width); margin-inline: auto;}

.site-header {
  background: linear-gradient(135deg, #ffe3e1, #fff0c9, #d6f5e3);
  padding: 34px 24px 18px 24px;
  position: relative;
  padding-top:110px;
}

.fa-star-half-stroke {
  color: white;
  text-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3);
}

.header-inner {
  display: flex;
  margin-top: 30px;
  align-items: center;
  gap: 24px;
}

.profile-pic {
  flex-shrink: 0;
  margin-right: 16px;
  width: 140px;
  height: 140px;
  border-radius: 18px;
  background: #ffb7b7;
  border: 10px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.title-area h1 { font-size: 42px; margin: 0; }
.title-area p  { margin-top: 10px; font-size: 18px; color: var(--muted); max-width: 720px; }

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    text-align: center;
    margin-top: 16px;
  }

  .site-header {
    padding-top: 120px;
  }

  .profile-pic {
    width: 110px;
    height: 110px;
    margin: 0;
  }

  .title-area h1 {
    font-size: 28px;
    line-height: 1.2;
  }

  .title-area p {
    font-size: 15px;
    margin-top: 6px;
    max-width: 100%;
  }
}


/* Hamburger (tampil di mobile) */
.hamburger {
  margin-top: 70px;
  display: none;
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 1100;
  background: #ffe4eb;
  border: 2px solid #f6b4c3;
  padding: 8px 10px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 4px rgba(255,170,185,0.2);
}

.hamburger .hamburger-icon {
  display: block;
  width: 22px;
  height: 22px;
  background: none;
  position: relative;
}

.hamburger .hamburger-icon::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 22px;
  height: 2px;
  background: #b55f73;
}

.hamburger .hamburger-icon::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 2px;
  background: #b55f73;
}

.hamburger .hamburger-icon::before {
  box-shadow: 0 7px 0 #b55f73;
}

.hamburger .hamburger-icon,
.hamburger .hamburger-icon::before,
.hamburger .hamburger-icon::after  { transition:0.3s ease; }

@media (max-width: 768px) {
  .hamburger {
    top: 10px;
  }
}

/* =========================================================
   3) MARQUEE 
   ========================================================= */
.marquee {
  width: 100%;
  overflow: hidden;
  background: #ffe4eb;
  padding: 12px 0;
  margin-bottom: 18px;
}
.marquee-track {
  display: flex;
  gap: 36px;
  white-space: nowrap;
  will-change: transform;
  animation: marquee-move 14s linear infinite;
}
.marquee-track span {
  font-size: 20px;
  color: #d58b9d;
  user-select: none;
}
@keyframes marquee-move {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
/* Kurangi gerak untuk pengguna yang sensitif terhadap animasi */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/*=======================================
plotting
==============================*/
.nav-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999; 
  background: rgba(255, 247, 250, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid #ffd1dc;

  isolation: isolate;         
  transform: translateZ(0);  
  overflow-x: hidden; 
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 7px 24px;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.search-box {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 2px solid #ffc7d3;
  border-radius: 999px;
  padding: 6px 18px; 
  box-shadow: 0 4px 12px rgba(255,150,173,0.18);
  flex-shrink: 0;
  max-width: 100%;
  min-width: 260px;
}

@media (max-width: 768px) {
  .main-nav {
    flex-wrap: wrap;
    gap: 12px;
    padding: 10px 16px;
  }

  .main-nav a {
    font-size: 15px;
  }

  .search-box {
    order: 99;              /* search turun ke bawah */
    width: 160px;
    padding: 4px 12px;
    min-width: unset;
    margin-left: auto;
  }

  .search-box input {
    width: 100%;
    font-size: 13px;
  }
}


/* =========================================================
   4) BREADCRUMB
   ========================================================= */
.breadcrumb {
  padding: 8px 24px;
  margin: 10px 0 0;
  color: var(--muted);
}
.breadcrumb ol {
  display: flex;
  gap: 8px;
  list-style: none;    /* Hilangkan angka default OL */
  padding: 0;
  margin: 0;
}
.breadcrumb li { display: inline-flex; align-items: center; }
.breadcrumb li + li::before {
  content: "/";
  margin: 0 8px;
  color: #c39aa9;
}
.breadcrumb a {
  color: var(--text);
  text-decoration: none;
}
.breadcrumb a:hover { text-decoration: underline; }

/* =========================================================
   LAYOUT & ARTICLES
   ========================================================= */

.layout {
  display: flex;
  gap: 24px;
  padding: 30px 24px;
}

.articles {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  z-index: 1;
}

/* ================= CARD ================= */

.article-card {
  position: relative;
  background: none;
  padding: 28px;
  border-radius: 24px;
  outline: 2px dashed var(--card-border);
  outline-offset: -2px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s;
}

.article-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  border-radius: 24px;
  z-index: -1;
}

.article-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  outline: 2px dashed var(--card-border);
  outline-offset: -2px;
  pointer-events: none;
  z-index: -1;
}

.article-card:hover {
  transform: translateY(-4px);
  border-color: #ff9fb5;
  box-shadow: 0 14px 30px rgba(255,150,173,0.12);
}

.article-header {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 36px; 
}

.article-image {
  width: 100%;
  aspect-ratio: 16 / 6;
  max-width: 1800px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  border-radius: 18px;
}

.article-image:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(255,150,173,0.12);
  transform: scale(1.04);
  filter: brightness(1.03);
}

.article-image img {
  transition: transform .6s ease, filter .6s ease;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.45) 0%,
    rgba(0,0,0,0.25) 30%,
    rgba(0,0,0,0) 65%
  );
  pointer-events: none;
}

.article-author {
  position: absolute;
  left: 36px;
  bottom: 30px;
  z-index: 2;
  text-shadow: 0 2px 6px rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
}

.article-author .avatar {
  width: 55px;
  height: 55px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.058);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-author .info .name {
  font-size: 18px;
  font-weight: 600;
}

.article-author .info .date {
  font-size: 14px;
  opacity: 0.85;
}

.thin-line {
  height: 4px;
  background: #ffe7d2;
  margin: 18px 0 28px;
  border-radius: 4px;
}

.article-title {
  font-size: 34px;
  margin: 0;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.tag {
  padding: 8px 16px;
  border-radius: 14px;
  font-size: 14px;
  color: #2f2230;
}

.tag[data-category="CATEGORY 1"] { background: var(--cat-1); }
.tag[data-category="CATEGORY 2"] { background: var(--cat-2); }
.tag[data-category="CATEGORY 3"] { background: var(--cat-3); }
.tag[data-category="CATEGORY 4"] { background: var(--cat-4); color: #241b2b; }
.tag[data-category="CATEGORY 5"] { background: var(--cat-5); }

.article-text {
  font-size: 18px;
  color: #564b54;
  line-height: 1.8;
  margin-top: 18px;
}

@media (max-width: 768px) {
  .article-image {
    aspect-ratio: 16 / 6;
  }

  .article-author {
    left: 20px;
    bottom: 18px;
  }

  .article-title {
    font-size: 26px;
  }
}
/* =========================================================
   6) SIDEBAR & CATEGORIES
   ========================================================= */
.sidebar { width: 320px; flex-shrink: 0; gap: 70px;}
.menu-box {
  background: #ffddc8;
  padding: 22px;
  border-radius: 18px;
  font-size: 20px;
  color: #7a4b53;
  line-height: 2;
}

.menu-list { list-style: none; padding: 0; margin: 10px 0 0; }
.menu-list a { color: inherit; text-decoration: none; }
.menu-list a:hover { text-decoration: underline; }

/* Categories */
.categories {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cat {
  padding: 12px 16px;
  border-radius: 14px;
  color: #2f2230;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s;
  border: 1px solid rgba(0,0,0,.06);
}
.cat:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(255,150,173,0.18);
}

/* Warna tombol kategori berdasarkan data-category */
.cat[data-category="CATEGORY 1"] { background: var(--cat-1); }
.cat[data-category="CATEGORY 2"] { background: var(--cat-2); }
.cat[data-category="CATEGORY 3"] { background: var(--cat-3); }
.cat[data-category="CATEGORY 4"] { background: var(--cat-4); color: #241b2b; }
.cat[data-category="CATEGORY 5"] { background: var(--cat-5); }

/* Tombol 'Tampilkan semua' */
.cat[data-category="all"] {
  background: #fff; color: var(--text);
  border: 1px dashed #d3a9b5;
}

/* Active state */
.active-cat {
  filter: brightness(1.12);
  box-shadow: 0 0 12px rgba(255,150,173,0.35);
  transform: translateY(-3px);
}

/* =========================================================
   7) MOBILE MENU & OVERLAY
   ========================================================= */
.mobile-menu {
  margin-top: 60px;
  position: fixed;
  top: 0;
  right: -78%;
  width: 78%;
  height: 100%;
  background: #fff7fa;
  z-index: 1200;
  transition: right .34s ease;
  overflow-y: auto;
  padding: 18px;
}
.mobile-menu[aria-hidden="false"] { right: 0; }

.mobile-close {
  background: none;
  border: none;
  color: #b55f73;
  font-size: 22px;
  float: right;
  cursor: pointer;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0);
  visibility: hidden;
  z-index: 1150;
  transition: background .25s ease, visibility .25s ease;
}
.overlay.show {
  background: rgba(0,0,0,0.32);
  visibility: visible;
}

/* =========================================================
   8) FOOTER & FORM
   ========================================================= */
.footer {
  background: #ffe4eb;
  padding: 44px 24px;
  margin-top: 30px;
  border-top: 3px solid #ffccd7;
  color: #7a4b53;
}
.footer-container {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  padding-bottom: 40px; 
}
.contact-section, .about-section { flex: 1 1 320px; }

.contact-form { 
  display: flex; 
  flex-direction: column; 
  gap: 10px; 
  padding-bottom: 12px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: 2px solid #ffc7d3;
  border-radius: 10px;
  background: #fff7fa;
  color: #7a4b53;
}
.submit-btn {
  padding: 12px;
  border: none;
  border-radius: 12px;
  background: var(--accent-pink);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: transform .22s ease, background .22s ease;
}
.submit-btn:hover { transform: translateY(-3px); background: #ff9fb5; }

.form-success {
  margin-top: 8px;
  background: #eaf9f0;
  border: 1px solid #bfe7cb;
  color: #21543b;
  padding: 10px 12px;
  border-radius: 10px;
}

.footer-beneran {
  background: #ffd6e0;
  border-top: 2px dashed #ffb9c8; 
  padding: 20px 24px;
  text-align: center;
}

.footer-beneran h5 {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: #7a4b53;
  letter-spacing: 0.3px;
}

/* =========================================================
   9) HELPERS & RESPONSIVE
   ========================================================= */
.is-hidden { display: none !important; }

@media (max-width: 960px) {
  .hamburger { display: block; }
  .layout { flex-direction: column; }
  .sidebar { width: 100%; }
  .articles { grid-template-columns: 1fr; }
}

/* ============================
   IMAGE SLIDER
   ============================ */
.slider-container {
  position: relative;
  width: 100%;
  height: 340px;
  margin: 26px auto 40px;
  overflow: hidden;
  border-radius: 18px;
  border: 3px solid var(--accent-pink);
  background: #fff;
  box-shadow: 0 8px 25px rgba(255,150,173,0.22);
}

.slider-track {
  display: flex;
  height: 100%;
  transition: transform .6s ease;
}

.slide {
  min-width: 100%;
  height: 100%;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Buttons */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #ffe4ebcc;
  border: none;
  color: #b55f73;
  font-size: 32px;
  padding: 6px 14px;
  cursor: pointer;
  border-radius: 12px;
  backdrop-filter: blur(4px);
  transition: background .2s ease, transform .2s ease;
}

.slider-btn:hover {
  background: #ffbfd0;
  transform: translateY(-50%) scale(1.08);
}

.prev { left: 14px; }
.next { right: 14px; }

/* Dots */
.slider-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.slider-dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: #ffc6d3;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}

.slider-dots button.active {
  background: #ff9fb5;
  transform: scale(1.25);
}

@media (max-width: 600px) {
  .slider-container {
    height: 260px;
  }
}

html {
  scroll-behavior: smooth;
}

.read-more-btn {
  padding: 10px 16px;
  border: none;
  background: var(--accent-pink);
  color: #fff;
  border-radius: 10px;
  cursor: pointer;
  margin-top: 10px;
  font-weight: 600;
  transition: .2s;
}

.read-more-btn:hover {
  filter: brightness(1.1);
}

.full-article p {
  font-size: 18px;
  color: #564b54;
  line-height: 1.8;
}

.article-card ul,
.full-article ul {
  margin: 18px 0 18px 22px;
  padding-left: 18px;
  line-height: 1.8;
}

.article-card li,
.full-article li {
  margin-bottom: 10px;
}

.spotify-embed {
  max-width: 500px;
  margin: 20px auto;
}

.full-article,
.full-article * {
  max-width: 100%;
  box-sizing: border-box;
  word-break: break-word;
  overflow-wrap: anywhere;
  white-space: normal;
}

/* Paragraf & heading khusus */
.full-article p,
.full-article h1,
.full-article h2,
.full-article h3,
.full-article li {
  max-width: 100%;
  line-height: 1.7;
}

#contentEditor {
  border: 1px solid #ddd;
  padding: 10px;
  border-radius: 6px;
  background: #fff;
}

.article-text,
.full-article {
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

/* =============================== */
/* ADMIN EDITOR FORM FIX */
/* =============================== */

.admin-editor {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

/* Label rapi */
.admin-editor label {
  font-weight: 600;
  margin-top: 6px;
}

/* Semua input sejajar & full */
.admin-editor input,
.admin-editor textarea,
.admin-editor select {
  width: 100%;
  box-sizing: border-box;
}

/* Preview textarea */
#previewInput {
  resize: vertical;
  min-height: 90px;
}

/* Editor WYSIWYG */
#contentEditor {
  min-height: 220px;
}

/* Toolbar biar gak nempel */
.admin-editor button {
  align-self: flex-start;
}

.row-2 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
}

.emoji-picker {
  position: fixed !important;
  top: auto;
  left: auto;
  z-index: 2147483647 !important; /* z-index dewa */
}

.article-card p {
  word-break: break-word;
  overflow-wrap: anywhere;
}

.admin-message {
  padding: 14px;
  border: 2px dashed #ffc7d3;
  border-radius: 14px;
  background: #fff0f5;
  max-width: 100%;
  overflow: hidden;
}

.admin-message p {
  margin: 10px 0;
  line-height: 1.6;
  word-break: break-word;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

#contentEditor {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: pre-wrap;
}




